Package-level declarations
Types
Link copied to clipboard
class ContextChatbot(contextRepository: ContextRepository, sessionFactory: ContextChatbot.SessionFactory) : Chatbot
Link copied to clipboard
Link copied to clipboard
abstract class InMemoryChatbot(maxSessions: Int = 1000, evictionBatchSize: Int = maxOf(1, maxSessions / 10)) : Chatbot
Abstract implementation of com.embabel.chat.Chatbot that maintains sessions in memory. This implementation is thread-safe and supports configurable maximum number of sessions. When the maximum number of sessions is reached, the oldest sessions are evicted to make room for new ones.
Link copied to clipboard
data class InMemoryConversation constructor(_messages: MutableList<Message> = mutableListOf(), val id: String = MobyNameGenerator.generateName(), persistent: Boolean = false) : Conversation